# @author: jungle
# @create : 2024/10/10 7:00
import sys
from cProfile import label

from PyQt5.QtWidgets import QApplication, QWidget, QLabel


class mywnd(QWidget):
    def __init__(self):
        super(mywnd,self).__init__()
        self.initUI()

    def initUI(self):
        label=QLabel("这是文字~~")
        label.setStyleSheet("font-size:30px;color:red")
        label.setParent(self)


if __name__ == '__main__':
    app=QApplication(sys.argv)
    w=mywnd()
    # 设置窗口标题
    w.setWindowTitle("我是标题")
    # 展示窗口
    w.show()
    # 程序进入循环等待状态
    app.exec_()